package com.adou.dao.impl;

import com.adou.dao.BookDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author:
 * @version: BookDaoImpl.java v 0.1
 * @date: 2023.04.05
 */
@Component("bookDao")
public class BookDaoImpl implements BookDao {
//    @Value("${name}")
    private String name;
    @Override
    public void save() {
        System.out.println("BookDaoImpl save ..." + name);
    }

//    @PostConstruct
    public void init(){
        System.out.println("init ...");
    }


    public void destory(){
        System.out.println("destory ...");
    }

}
